package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 条码字段对象 BARCODE_FIELD
 * 
 * @author ruoyi
 * @date 2025-03-26
 */
public class BarcodeField extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  Id */
    private Long id;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 字段类型 */
    @Excel(name = "字段类型")
    private String fieldType;

    /** 字段名 */
    @Excel(name = "字段名")
    private String fieldName;

    /** 小数位 */
    @Excel(name = "小数位")
    private Long decimalPlaces;

    /** 禁用状态 */
    @Excel(name = "禁用状态")
    private Long isDisabled;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String auditStatus;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdDate;

    /** 修改人 */
    private String modifiedBy;

    /** 修改日期 */
    private Date modifiedDate;

    /** 审核人 */
    private String auditedBy;

    /** 审核日期 */
    private Date auditedDate;

    /** 禁用人 */
    private String disabledBy;

    /** 禁用日期 */
    private Date disabledDate;

    private List<BarcodeFieldLine> lineList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setFieldType(String fieldType) 
    {
        this.fieldType = fieldType;
    }

    public String getFieldType() 
    {
        return fieldType;
    }

    public void setFieldName(String fieldName) 
    {
        this.fieldName = fieldName;
    }

    public String getFieldName() 
    {
        return fieldName;
    }

    public void setDecimalPlaces(Long decimalPlaces) 
    {
        this.decimalPlaces = decimalPlaces;
    }

    public Long getDecimalPlaces() 
    {
        return decimalPlaces;
    }

    public void setIsDisabled(Long isDisabled) 
    {
        this.isDisabled = isDisabled;
    }

    public Long getIsDisabled() 
    {
        return isDisabled;
    }

    public void setAuditStatus(String auditStatus) 
    {
        this.auditStatus = auditStatus;
    }

    public String getAuditStatus() 
    {
        return auditStatus;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setCreatedDate(Date createdDate) 
    {
        this.createdDate = createdDate;
    }

    public Date getCreatedDate() 
    {
        return createdDate;
    }

    public void setModifiedBy(String modifiedBy) 
    {
        this.modifiedBy = modifiedBy;
    }

    public String getModifiedBy() 
    {
        return modifiedBy;
    }

    public void setModifiedDate(Date modifiedDate) 
    {
        this.modifiedDate = modifiedDate;
    }

    public Date getModifiedDate() 
    {
        return modifiedDate;
    }

    public void setAuditedBy(String auditedBy) 
    {
        this.auditedBy = auditedBy;
    }

    public String getAuditedBy() 
    {
        return auditedBy;
    }

    public void setAuditedDate(Date auditedDate) 
    {
        this.auditedDate = auditedDate;
    }

    public Date getAuditedDate() 
    {
        return auditedDate;
    }

    public void setDisabledBy(String disabledBy) 
    {
        this.disabledBy = disabledBy;
    }

    public String getDisabledBy() 
    {
        return disabledBy;
    }

    public void setDisabledDate(Date disabledDate) 
    {
        this.disabledDate = disabledDate;
    }

    public Date getDisabledDate() 
    {
        return disabledDate;
    }

    public List<BarcodeFieldLine> getLineList() {
        return lineList;
    }

    public void setLineList(List<BarcodeFieldLine> lineList) {
        this.lineList = lineList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("fieldType", getFieldType())
            .append("fieldName", getFieldName())
            .append("decimalPlaces", getDecimalPlaces())
            .append("isDisabled", getIsDisabled())
            .append("auditStatus", getAuditStatus())
            .append("createdBy", getCreatedBy())
            .append("createdDate", getCreatedDate())
            .append("modifiedBy", getModifiedBy())
            .append("modifiedDate", getModifiedDate())
            .append("auditedBy", getAuditedBy())
            .append("auditedDate", getAuditedDate())
            .append("disabledBy", getDisabledBy())
            .append("disabledDate", getDisabledDate())
            .toString();
    }


}
